home *** CD-ROM | disk | FTP | other *** search
- VERSION BUILD=320028
- 'This example macro uses the LOOP function and a datasource to submit several datasets to a website.
- 'For other ways to submit data to websites, please see the powerful "database-2-web.vbs" Windows script
- URL GOTO=http://www.iopus.com/iim/testform.html
- ' The folling line is only a safeguard. If the macro is NOT started with a command line or script parameter
- ' it takes the datasource-loop.txt as default value.
- '!LOOP is automatically replaced by the current value of the loop counter e.g 1,2,3,...
- CMDLINE !DATASOURCE datasource-loop.txt
- ' Fill web form
- 'Do not encrypt/decrypt given password
- SET !ENCRYPTION NO
- TAG TYPE=INPUT:TEXT FORM=NAME:TestForm2 ATTR=NAME:Name CONTENT={{title!LOOP}}
- TAG TYPE=TEXTAREA FORM=NAME:TestForm2 ATTR=NAME:Remarks CONTENT={{item!LOOP}}
- TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:TestForm2 ATTR=NAME:Customer&&VALUE:Yes CONTENT=Yes
- TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:TestForm2 ATTR=NAME:Reg_code CONTENT={{password}}
- ' Submit Data
- TAG TYPE=INPUT:SUBMIT FORM=NAME:TestForm2 ATTR=NAME:SendButton&&VALUE:Click<SP>to<SP>order<SP>now
-